$(document).ready(function(){
	
	//transforma o formulário em um wizard
	var wizardObj = wizardUpdate($("form").attr("id"),"certificacaos",false);
	
});

function popular(){
    registro = $("#"+$("form").attr("id")).formParams(false);
	
	$("select").each(function(){
		try{ 
			eval("registro."+$(this).attr("id")+" = findDataId(registro."+$(this).attr("id")+".id, $(\"#"+$(this).attr("id")+"\").get(0).dataSource);");
		}catch(e){}
	});
	
	return registro;
}

function preencherFormulario(data){
			$("#"+$("form").attr("id")).populate( data,{resetForm:false});
}


